﻿using System;
using System.Data.Linq;

namespace Model
{
    public class DBDataContext:DataContext
    {
        public static string DBConnectionString = "Data Source=isostore:/DB.sdf";
        private static DBDataContext _default;
        public DBDataContext():base(DBConnectionString)
        {

        }

        public static DBDataContext Default
        {
            get
            {
                if (_default == null)
                {
                    _default = new DBDataContext();
                }
                return _default;
            }
        }

        public Table<Project> TowPointProjet;

        public Table<Location> Location;
    }
}
